home *** CD-ROM | disk | FTP | other *** search
/ Oh!X 2001 Spring / Oh!X 2001 Spring Special CD-ROM (Japan).7z / Oh!X 2001 Spring Special CD-ROM (Japan) (Track 1).bin / VC / layered3 / LayeredWnd.h < prev    next >
C/C++ Source or Header  |  2000-08-10  |  1KB  |  44 lines

  1. // LayeredWnd.h: LayeredWnd クラスのインターフェイス
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_LAYEREDWND_H__F9EB8D6D_67C1_11D4_9897_00C00CB069F5__INCLUDED_)
  6. #define AFX_LAYEREDWND_H__F9EB8D6D_67C1_11D4_9897_00C00CB069F5__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #include "resource.h"
  13.  
  14. BOOL InitInstance( HINSTANCE hInstance );
  15. void ExitInstance();
  16. LONG APIENTRY MainWndProc( HWND hWnd, UINT message, UINT wParam, LONG lParam );
  17.  
  18. class LayeredWnd  
  19. {
  20. public:
  21.     LayeredWnd( HINSTANCE hInstance );
  22.     virtual ~LayeredWnd();
  23.     HWND Create();
  24.     LRESULT WndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
  25.     HBITMAP CreateAlphaContainedBitmap( HBITMAP hBitmap, HBITMAP hAlpha );
  26.     int Animate( HWND hWnd, int frm );
  27.  
  28.     HINSTANCE m_hInstance;
  29.     HWND m_hWnd;
  30.     HDC m_hDC;
  31.     HBITMAP m_hBitmap;
  32.     int m_nWidth, m_nHeight;
  33.     HMENU m_hMenu;
  34.     int m_nFrame;
  35.  
  36.     // メッセージ関数群
  37.     void OnCreate( HWND hWnd );
  38.     void OnDestroy( HWND hWnd );
  39.     int OnNcHitTest( int xPos, int yPos );
  40.     void OnNcRButtonDown( int nHittest, POINTS pts );
  41. };
  42.  
  43. #endif // !defined(AFX_LAYEREDWND_H__F9EB8D6D_67C1_11D4_9897_00C00CB069F5__INCLUDED_)
  44.